<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:if= "${category !=null}" th:replace="common::header(${categoryMap.get(category)}+'排行榜-'+${name},${categoryMap.get(category)}+'排行榜-'+${name},${description})">
</head>
<body>
<div class="main">
    <div th:replace="common::contentHeader(${name})"></div>
    <div th:replace="common::contentNav"></div>
    <div class="fl_left">
        <ul>
            <li th:each="categoryM:${categoryMap}" th:class="@{(${categoryM.key == category} ? 'menucurr' :'' )}"><a href="/xuanhuan/1.html" th:href="@{/articleList(category=${categoryM.key},page=1)}" th:text="${categoryM.value}">玄幻小说</a></li>
        </ul>
    </div>
    <div class="fl_right">

        <div class="tt" th:each="article:${articleList}">
            <h3><a th:href="@{${article.url}}" th:text="${article.articleName}">articleName</a></h3>
            <span class="pic"><a th:href="@{${article.url}}"><img th:src="@{${article.imgUrl}}" width="78" height="108" /></a></span>
            <div class="pp">
                <p class="p1"><a th:href="@{${article.authorUrl}}" th:text="${article.author}">author</a></p>
                <p class="p2" th:text="${article.intro}">intro</p>
            </div>
            <div class="novellink">
                <p><a th:href="@{${article.chapterListUrl}}">立即阅读</a></p>
                <p><a th:href="@{${article.addBookcaseUrl}}"  rel="nofollow">加入书架</a></p>
                <p><a th:href="@{${article.addVoteUrl}}"  rel="nofollow">推荐本书</a></p>
                <div class="clear"></div>
            </div>
        </div>
    
        <div class="clear"></div>

        <div class="pagelink" id="pagelink" th:if="${articleList.totalPages gt 0}">
            <span id="pagestats" th:text="|${page}/${articleList.totalPages}|">1/288</span>
            <a th:href="@{/articleList(category=${category},page=1)}" class="pgroup">首页</a>
            <a th:if="${page gt 1}" th:href="@{/articleList(category=${category},page=${page-1})}" class="prev">上页</a>
            <a th:each="i:${#numbers.sequence(page-4 , page + 4)}" th:href="@{/articleList(category=${category},page=${i})}" th:text="${i}" th:if="${i ge 1 and i le articleList.totalPages}" >num</a>
            <a th:if="${page lt articleList.totalPages}" th:href="@{/articleList(category=${category},page=${page+1})}" class="next">下页</a>
            <a th:href="@{/articleList(category=${category},page=${articleList.totalPages})}"  class="ngroup">尾页</a>
        </div>
    </div>
    <div th:replace="common::footer(${copyright},${support})" ></div>
</div>
</body>
</html>